import styled from "styled-components";

export const RightWrapper = styled.div`
  flex: 1;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  color:${ props => props.theme.isTop?'white':props.theme.text.primaryColor};

  .btns {
    padding: 12px;
    border-radius: 22px;
    cursor: pointer;
    &:hover{
      background-color:#F7F7F7;
    }
  }
  
  .profile {
    position: relative;
    width: 86px;
    height: 48px;
    margin-left: 2px;
    margin-right: 24px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid ${props => props.theme.border.primaryColor};
    border-radius: 30px;
    cursor: pointer;
    /* （复用）混入主题shadow */
    ${props=>props.theme.mixin.boxShadow}
    /* transition: box-shadow 0.2s ease;
    &:hover{
      box-shadow: 0px 2px 4px rgba(0, 0, 0, .2);
    }     */

    .panel {
      position: absolute;
      right: 0;
      top: 54px;
      width: 240px;
      border-radius: 10px;
      box-shadow: 0px 0px 10px rgba(0,0,0,.2);
      background-color: white;
      .top,.bottom {
        padding: 6px 0;
        .item {
          height: 52px;
          line-height: 52px;
          padding: 0 16px;
          &:hover {
            background-color: #eee;
          }
        }
      }
      
      .top {
        border-bottom: 1px solid ${props=>props.theme.border.primaryColor};
      }
    }
  }

`